include(FetchContent)

function (DownloadLibs)
    message("=====")
    message("Download botan3.2")
    set(BOTAN_VERSION 3.2.0)
    set(BOTAN_LIB_ROOT_DIR    "${CMAKE_CURRENT_BINARY_DIR}/botan")

    include(cmake/botanCmake.cmake)

    message("HI ${BOTAN_LIB_LIB_DIR}")
    if(UNIX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
        set(LinkLibraries "${BOTAN_LIB_LIB_DIR}/libbotan-3.a" PARENT_SCOPE)
    else()
        set(LinkLibraries "${BOTAN_LIB_LIB_DIR}/libbotan-3.lib" PARENT_SCOPE)
    endif(UNIX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
    set(LinkInclude  "${BOTAN_LIB_INCLUDE_DIR}/botan-3" y PARENT_SCOPE)
endfunction()
